<?php
//在线用户IDlist  id
define('ON_LINE_USER_ID_LIST','ON_LINE_USER_ID_LIST');
//用户状态列表   userid:status
define('USER_STATUS_LIST','USER_STATUS_LIST');
//在线用户的ID  ON_LINE_USER_ID__{user_id}=>{user_id}
define('ON_LINE_USER_ID','ON_LINE_USER_ID__');
//用户状态 status USER_STATUS__{user_id}=>{status}  [-1:请求开门,1:开门中,2:已开门,3:已关门无商品,4:已关门有商品]
define('USER_STATUS','USER_STATUS__');

//请求开门
define('QQ_DOOR_OPEN',-1);
//开门中
define('DOOR_OPENING',1);
//门已开
define('DOOR_OPENED',2);
//已关门无商品
define('DOOR_CLOSED_NO',3);
//已关门有商品
define('DOOR_CLOSED_YES',4);
//已关门有商品扣款失败
define('DOOR_CLOSED_YES_FAIL',5);

//门状态    DOOR_STATUS__{door_id}=>{status}
define('DOOR_STATUS','DOOR_STATUS__');
//用户门状态  USER_DOOR_STATUS__{user_id}=>{door_id}
define('USER_DOOR_STATUS','USER_DOOR_STATUS__');
//门对应的用户ID   USER_DOOR_RELA__{door_id}=>{user_id}
define('USER_DOOR_RE','USER_DOOR_RELA__');
//用户未处理的订单   队列  user_id:order_pay:order_sn:money
define('USER_ORDER_OPT_LIST','USER_ORDER_OPT_LIST');

//微信支付方式
define('WX_PAY',2);
//支付宝支付方式
define('ALI_PAY',1);

//订单支付处理url
define('PAY_ORDER_URL','http://fugui.52ywy.com/Home/Extra/wechatWithhold');
//生成订单url
define('ADD_ORDER_URL','http://fugui.52ywy.com/Home/Order/addOrder');

//用户和 worker_id 和 connection_id 的关联
define('USER_ON_LINE_CONN','USER_ON_LINE_CONN__');
//user_pay_type
define('USER_PAY_TYPE','USER_PAY_TYPE__');